package com.youkeyi.ddy.cloud.common.api.application.system.dropdown;

import com.youkeyi.ddy.cloud.common.api.application.system.dropdown.dto.SystemDropdownListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.dropdown.param.SystemDropdownListCloudParam;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SystemDropdownCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 3/23/22 11:17 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/dropdown/fallback")
public class SystemDropdownCloudServiceFallback implements SystemDropdownCloudService {

    @Override
    public SystemDropdownListCloudDto getOne(String dropdownName) {
        return new SystemDropdownListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemDropdownListCloudDto getMore(SystemDropdownListCloudParam param) {
        return new SystemDropdownListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemDropdownListCloudDto getAll() {
        return new SystemDropdownListCloudDto(Boolean.FALSE, "服务不可用");
    }
}
